<script>
export default {
  globalData: {
    isLoggedIn: false,
    userInfo: null
  },
  onLaunch: function () {
    // console.log('App Launch');
    // 检查用户登录状态
    const token = uni.getStorageSync('token');
    if (token) {
      this.globalData.isLoggedIn = true;
      // 这里可以获取用户信息
    }
  },
  onShow: function () {
    // console.log('App Show')
  },
  onHide: function () {
    // console.log('App Hide')
  }
}
</script>

<style>
/*每个页面公共css */
@import "./common/styles/button-common.wxss";

page {
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', sans-serif;
  font-size: 32rpx;
  font-weight: 500;
  color: #333;
  background-color: #f5f5f5;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  font-synthesis: none;
}

/* 清除默认样式 */
view, text, scroll-view, swiper, button, image {
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 加粗文本优化 */
text[class*="bold"], view[class*="bold"], .font-bold, .btn-primary {
  -webkit-font-smoothing: subpixel-antialiased;
}

/* 统一按钮样式 */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30rpx;
  font-size: 32rpx;
  font-weight: bold;
  height: 90rpx;
  border-radius: 10rpx;
}

.btn-primary {
  background-color: #1e3c72;
  color: #fff;
}

.btn-default {
  background-color: #f5f5f5;
  color: #333;
  border: 1rpx solid #ddd;
}
</style>
